/**
 * Copyright (c) Software Institute of PKU
 * All rights reserved. 
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package edu.pku.sei.modeler.uml.obsolete.fromeditpart;



import java.beans.PropertyChangeEvent;
import java.util.ArrayList;
import java.util.List;

import org.eclipse.swt.graphics.Image;

import edu.pku.sei.modeler.images.ImageProvider;
import edu.pku.sei.modeler.edit.parts.BaseTreeEditPart;
import edu.pku.sei.modeler.model.structure.MetaNode;
import edu.pku.sei.modeler.model.structure.MetaShapeElement;

import edu.pku.sei.modeler.model.uml.BasicActivities.ObjectFlow;

/**
 * @generated
 *
 */
public class ObjectFlowTreeEditpart extends BaseTreeEditPart {
    public ObjectFlowTreeEditpart(MetaShapeElement model) {
        super(model);
    }

    protected void handlePropertyChanged(PropertyChangeEvent event) {
		String propertyName = event.getPropertyName();
	}
    
    private ObjectFlow getObjectFlow() {
		return (ObjectFlow)((MetaNode)getModel()).getModelElement();
	}

    protected void refreshVisuals() {
    	super.refreshVisuals();
    	Image image = ImageProvider.getImage(ImageProvider.CLASS_IMAGE);
    	setWidgetImage(image);
        setWidgetText(getObjectFlow().toString());
    }
}